/* $Id: OpenMapPropertiesDialogUnitTest.java 63 2010-02-14 13:52:34Z aaron.day $ */
package org.crazydays.gameplan.map.action;


import org.junit.*;

import static org.easymock.EasyMock.*;
import static org.easymock.classextension.EasyMock.*;

import org.crazydays.gameplan.controller.Controller;

/**
 * OpenMapPropertiesDialogUnitTest
 */
public class OpenMapPropertiesDialogUnitTest
{
    /**
     * Test actionPeformed(ActionEvent).
     */
    @Test
    public void testActionPerformed()
    {
        // mocks
        Controller controller = createMock(Controller.class);

        // setup
        OpenMapPropertiesDialog action = new OpenMapPropertiesDialog();
        action.setController(controller);

        // expect
        controller.openMapPropertiesDialog();

        // replay
        replay(controller);

        // test
        action.actionPerformed(null);

        // verify
        verify(controller);
    }
}
